package com.tql.pandian.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tql.pandian.entity.TqlPandianPeriodEntity;
import com.tql.pandian.entity.TqlPandianPeriodShopEntity;
import com.tql.pandian.entity.dto.PanDianPeriodDTO;
import com.tql.pandian.entity.dto.PeriodPcListDTO;
import com.tql.pandian.entity.dto.TqlPandianPeriodDTO;
import com.tql.pandian.entity.vo.PanDianListVo;
import com.tql.pandian.entity.vo.PandianVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface PandianPeriodMapper extends BaseMapper<TqlPandianPeriodEntity> {

    int insertPandianPeriod(TqlPandianPeriodEntity entity);

    TqlPandianPeriodEntity selectPeriodById(Long id);

    List<PandianVo> selectPanDianList(String deptCode);

    List<Map> selectPcList(PeriodPcListDTO dto);

    Integer selectPcListCount(PeriodPcListDTO dto);

    List<PandianVo> selectTimeSlot(String deptCode);

    int updatePandianPeriod(TqlPandianPeriodEntity entity);

    int insertBatchPandianPeriod(List<TqlPandianPeriodEntity> entities);

    List<TqlPandianPeriodEntity> selectPanDianPeriod(TqlPandianPeriodDTO tqlPandianPeriodDTO);

    List<PanDianListVo> selectPanDianPeriodByCode(PanDianPeriodDTO panDianPeriodDTO);

    int deleteBatchByIds(List<Long> ids);

    List<Map> selectSlotTime(String dateMonth);
}
